import {http} from "../httpConfig";

export const queryAllOrderApi = () => {
    return http.get('/order/queryAllOrder').then(
        response => {
            return response.data
        }
    )
}
export const deleteOrderByIdApi = (params) => {
    return http.get('/order/deleteOrderById', params).then(
        response => {
            return response
        }
    )
}
export const updateOrderApi = (params) => {
    return http.post('/order/updateOrder', params).then(
        response => {
            return response
        }
    )
}
export const addOrUpdateOrderApi = (params) => {
    console.log(params)
    return http.post('/order/addOrUpdateOrder', params, 'data').then(
        response => {
            return response
        }
    )
}